@extends('layout.master')

{{--add title here--}}
@section('title')
登录页
@stop

{{--add css styles here--}}
{{HTML::style('css/authority-common.css')}}

{{--add css scripts here--}}


@section('mainTopNav')

@stop

@section('content')
    <!-----------------巨幕-------------------->
    <div class="jumbotron authority-jumbotron">
        <h1>用户登录</h1>
        <a class="btn btn-primary" href="{{URL::to('/')}}"><i class="fa fa-main-reply"> 返回商店</i></a>
    </div>

    <div class="container">
    {{Form::open([
        'method' => 'post',
        'action' => 'AuthorityController@postLogin',
        'class' => 'authority-form'
    ])}}
        <!--<form class="authority-form">-->
                <!-------------username-------------->
                <div class="form-group">
                    <input class="form-control" name="username" type="text" placeholder="请输入用户名" required/>


                </div>

                <!-------------password-------------->
                <div class="form-group">
                    <input class="form-control" name="password" type="password" placeholder="请输入密码" required/>
                    {{$errors->first('loginFalse',
                        '<div class="alert alert-danger alert-dismissible">
                            <button type="button" class="close" data-dismiss="alert">
                            <span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                            :message
                        </div>'
                    )}}
                </div>

                <!-------------submit---------------->
                <div class="form-group">
                    <button type="submit" class="btn btn-default authority-submit">登录</button>
                </div>

                <div class="jump-to">
                    <p>没有账号?点击<a href="{{URL::to('authority/signup')}}">注册</a></p>
                </div>
        <!--</form>-->
        {{Form::close()}}

    </div>
@stop
